package com.ruoyi.yl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.yl.domain.vo.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author: linKe
 * @Date: 2022/2/20 15:52
 * @FileName: YlStockAndOutInfo
 * @version: 1.0
 * @Description: 出入库合计对象
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
@TableName("yl_stock_and_out_info_lin")
public class YlStockAndOutInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 单号
     */
    private String number;

    /**
     * 类别
     */
    private Integer type;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 批号
     */
    @TableField(value = "batch_number")
    private String batchNumber;
    /**
     * 采购金额合计
     */
    @TableField(value = "purchase_sum")
    private BigDecimal purchaseSum;
    /**
     * 零售金额合计
     */
    @TableField(value = "sale_sum")
    private BigDecimal saleSum;
}

